<template>
    <div>
        <!-- 伙拼 -->
        <together-box :together="together"></together-box>
    </div>
</template>

<script>
    // 导入子组件
    import together from "../shopping/pairedTogether/together.vue"
export default {
    components:{
        TogetherBox:together
    },
    data(){
        return {
            together:[]
        }
    },
    created(){
        this.getdata();
    },
    methods:{
        getdata(){
            this.$axios.get("http://localhost:8080/abc").then(data => {
                this.together = data.data.pairedTogether;
                console.log(this.together);
            });
        }
    }
}
</script>

<style>

</style>
